<template>
  <div class="home">
    <h2 class="text-2xl font-bold mb-4">欢迎使用智念科技 AI</h2>
    <div class="bg-white p-6">
      <button
        class="bg-blue-300 hover:bg-blue-500 text-white px-4 py-2 rounded mr-2"
        @click="openBaidu"
      >
        打开百度
      </button>
    </div>
  </div>
</template>

<script setup lang="ts">
const openBaidu = () => {  
(window as any).electronAPI?.openBaidu()
}
</script>

